package com.gao.frame.study.shop.user.module.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

@Data
@TableName(value = "customer_point_log")
public class CustomerPointLog {
    /**
     * 积分日志ID
     */
     @TableId(value = "point_id", type = IdType.AUTO)
    private Integer pointId;

    /**
     * 用户ID
     */
    @TableField(value = "customer_id")
    private Integer customerId;

    /**
     * 积分来源:0订单,1登录,2活动
     */
    @TableField(value = "source")
    private Byte source;

    /**
     * 积分来源相关编号
     */
    @TableField(value = "refer_number")
    private Integer referNumber;

    /**
     * 变更积分数
     */
    @TableField(value = "change_point")
    private Short changePoint;

    /**
     * 积分日志生成时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    public static final String COL_CUSTOMER_ID = "customer_id";

    public static final String COL_SOURCE = "source";

    public static final String COL_REFER_NUMBER = "refer_number";

    public static final String COL_CHANGE_POINT = "change_point";

    public static final String COL_CREATE_TIME = "create_time";
}